env.setErrorMessageBoxEnabled(true)

RED_Fighter = SPAWN:New("Axis Fighter-1")
                    :InitRepeatOnLanding()
                    :InitLimit(2, 0)
                    :SpawnScheduled(120, 0.3)
RED_Fighter:SpawnScheduleStart()

RED_Armor = SPAWN:New("Axis Armor-1")
                :InitLimit(5, 0)
                :SpawnScheduled(800, 0.15)
RED_Armor:SpawnScheduleStart()

local BLUE_Boat = SPAWN:New("Allied Boat-1")
ATTACK_RADIO = MENU_COALITION_COMMAND:New(coalition.side.BLUE, "命令我方登陆舰队出发", nil,
function ()
    if BLUE_Boat then
        if not BLUE_Boat:GetFirstAliveGroup() then
            BLUE_Boat:Spawn()
            MessageToAll("登陆舰队出发", 10, "战情通报")
        else
            MessageToAll("登陆舰队已经出发", 10, "战情通报")
        end
    end
end)

